package com.lwei.tallybook.base.domain.rel;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.core.toolkit.IdWorker;
import com.lwei.tallybook.base.domain.base.BaseDomain;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * 账单与账本关系表
 * @author sks.lwei
 */
@Getter
@Setter
@NoArgsConstructor
@TableName("rel_bill_book")
public class RelBillBook extends BaseDomain<RelBillBook> {

    /**
     * 账本uuid
     */
    @TableField("book_uuid")
    private String bookUuid;
    /**
     * 账单管理uuid
     */
    @TableField("bill_uuid")
    private String billUuid;

    public RelBillBook(String bookUuid, String billUuid) {
        super.setUuid("rbb_"+ IdWorker.getIdStr());
        this.bookUuid = bookUuid;
        this.billUuid = billUuid;
    }
}
